package com.sgcc.operate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 人群明细对象 o_crowd_detail
 * 
 * @author sgcc
 * @date 2021-04-02
 */
public class OCrowdDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人群明细id */
    @Excel(name = "人群明细id")
    private String id;

    /** 人群规则定义id */
    @Excel(name = "人群规则定义id")
    private String crowdid;

    /** 供电单位 */
    @Excel(name = "供电单位")
    private String orgno;

    /** 户号 */
    @Excel(name = "户号")
    private String consno;

    /** 户名 */
    @Excel(name = "户名")
    private String consname;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String tel;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private String consstatus;

    /** 用电地址 */
    @Excel(name = "用电地址")
    private String elecaddr;

    /** 用电类别 */
    @Excel(name = "用电类别")
    private String powertype;

    /** 线路编号 */
    @Excel(name = "线路编号")
    private String lineno;

    /** 线路名称 */
    @Excel(name = "线路名称")
    private String linename;

    /** 台区编号 */
    @Excel(name = "台区编号")
    private String tgno;

    /** 台区名称 */
    @Excel(name = "台区名称")
    private String tgname;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    @Excel(name = "逻辑删除标记", readConverterExp = "0=：显示；1：隐藏")
    private String delFlag;

    private String deptName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCrowdid(String crowdid) 
    {
        this.crowdid = crowdid;
    }

    public String getCrowdid() 
    {
        return crowdid;
    }
    public void setOrgno(String orgno) 
    {
        this.orgno = orgno;
    }

    public String getOrgno() 
    {
        return orgno;
    }
    public void setConsno(String consno) 
    {
        this.consno = consno;
    }

    public String getConsno() 
    {
        return consno;
    }
    public void setConsname(String consname) 
    {
        this.consname = consname;
    }

    public String getConsname() 
    {
        return consname;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setConsstatus(String consstatus) 
    {
        this.consstatus = consstatus;
    }

    public String getConsstatus() 
    {
        return consstatus;
    }
    public void setElecaddr(String elecaddr) 
    {
        this.elecaddr = elecaddr;
    }

    public String getElecaddr() 
    {
        return elecaddr;
    }
    public void setPowertype(String powertype) 
    {
        this.powertype = powertype;
    }

    public String getPowertype() 
    {
        return powertype;
    }
    public void setLineno(String lineno) 
    {
        this.lineno = lineno;
    }

    public String getLineno() 
    {
        return lineno;
    }
    public void setLinename(String linename) 
    {
        this.linename = linename;
    }

    public String getLinename() 
    {
        return linename;
    }
    public void setTgno(String tgno) 
    {
        this.tgno = tgno;
    }

    public String getTgno() 
    {
        return tgno;
    }
    public void setTgname(String tgname) 
    {
        this.tgname = tgname;
    }

    public String getTgname() 
    {
        return tgname;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("crowdid", getCrowdid())
            .append("orgno", getOrgno())
            .append("consno", getConsno())
            .append("consname", getConsname())
            .append("tel", getTel())
            .append("consstatus", getConsstatus())
            .append("elecaddr", getElecaddr())
            .append("powertype", getPowertype())
            .append("lineno", getLineno())
            .append("linename", getLinename())
            .append("tgno", getTgno())
            .append("tgname", getTgname())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
